<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" /><title>Llistat Tasques</title>

</head>
<body><br />
<? include('menu.php'); ?>

<br />
<table style="text-align: left; width: 878px; height: 77px;" border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="width: 67px;">Job ID</td>
<td style="width: 192px;">Titol</td>
<td style="width: 132px;">Data Creació</td>
<td style="width: 145px;">Ultima execucció</td>
<td style="width: 145px;">Actiu</td>
<td style="width: 281px;">Accions</td>
</tr>
<? 

	
	
				foreach($jobs as $job){
?>
			
				
					
			
<tr>
<td style="width: 67px;"><?= $job->getId(); ?> </td>
<td style="width: 192px;"><?= $job->getDescription(); ?></td>
<td style="width: 132px;"><?= $job->getCreateData(); ?></td>
<td style="width: 145px;"><?= $job->getLastRunData(); ?></td>
<td style="width: 145px;"><?= $job->getActive(); ?></td>
<td style="width: 281px;">
	<a href="index.php?route=administrar/editJob&id=<?= $job->getId(); ?>">Modifica</a>
	<!--  <a href="index.php?route=administrar/editJob ">Consulta</a> -->
	<a href="index.php?route=administrar/editJob ">Elimina</a>
	<a href="index.php?route=administrar/editJob ">Activa</a>
</td>
</tr>
<? 

	}
			

?>
</tbody>
</table>
<br />
</body>
</html>